import QtQuick 2.12
import QtQuick.Controls 2.12

Rectangle{
    id: cusState;

    width: 45;
    height: 45;
    radius: 50;
    color: "#2E1616";

    border.width: 2;
    border.color: "yellow"

    states: [
        State {
            name: "default"
            PropertyChanges {
                target: cusState
                color: "#2E1616";
            }
        },
        State {
            name: "failed"
            PropertyChanges {
                target: cusState
                color: "red";
            }
        },
        State {
            name: "success"
            PropertyChanges {
                target: cusState
                color: "green"
            }
        }
    ]
}
